package main
import (
	"fmt"
	"net/http"
)

func main(){
	http.HandleFunc("/", index)
	http.ListenAndServe(":8000", nil)
}

/*
* 用于响应客户端请求
* ResponseWriter 响应访问者的数据
* Request 访问者的请求
*/
func index(writer http.ResponseWriter, request *http.Request){
	fmt.Fprintf(writer, "<html><body><input type=\"text\" value=\"%s\" /></body></html>", request.URL.Path[1:])
}
